import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * Created by caozengling on 2018/7/17.
 */
public class ceshi {
    static Boolean foo(char c){
        System.out.println(c);
        return true;
    }

    public static void main(String[] args) {
        String passwd = new SimpleHash("SHA-1", "合同", "123456").toString();	//密码加密
        System.out.println(passwd);
    }
}
